using System;
using System.Collections.Generic;
using System.Text;

namespace Pg.BioMedics.RatObserver.Util
{
    public class RandomUtil
    {
        private static Char[] chars = new Char[] { 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q','Q', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z' };
        private static Random rand = new Random();

        public static String genString(int lenght)
        {
            String res = "";
            for (int i = 0; i < lenght; i++)
                res += chars[rand.Next(chars.Length)];
            return res;
        }
    }
}
